package com.hui.dao.mapper;

import com.hui.entity.Resource;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;

@Component
public interface ResourceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Resource record);

    int insertSelective(Resource record);

    Resource selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);

    public List<Resource> loadPermissionsByUsername(String username);
}